package mdr.demo

class Product {
    String name
    String category
    String description

    static hasMany = [customers : Customer]
    static belongsTo = mdr.demo.Customer
    		
    static constraints = {
    	name(nullable:false)
    	category(blank:true,maxSize:50)
    	description(blank:true,maxSize:200)
    }
}
